package com.sky.sd.system.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.sky.sd.system.bean.dto.DeptNode;
import com.sky.sd.system.bean.po.Dept;
import com.sky.sd.system.bean.vo.DeptSearchVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 部门 Mapper 接口
 * </p>
 *
 * @author 弓振
 * @since 2020-07-03
 */
public interface DeptMapper extends BaseMapper<Dept> {

    @Select("select * from sky_dept ${ew.customSqlSegment}")
    IPage<DeptNode> listDeptPage(IPage<DeptNode> page, @Param(Constants.WRAPPER) Wrapper<Dept> wrapper);
}
